package com.kedou.sdk.params;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/6/6 0006.
 */
public class AuthLoginResponseParams extends ResponseParams<AuthLoginResponseParams.AuthLoginResponseData> {

    public AuthLoginResponseParams() {

    }

    protected AuthLoginResponseParams(Parcel in) {
        super(in);
    }

    public static class AuthLoginResponseData implements Parcelable {

        public static final Creator<AuthLoginResponseData> CREATOR = new Creator<AuthLoginResponseData>() {
            @Override
            public AuthLoginResponseData createFromParcel(Parcel source) {
                return new AuthLoginResponseData(source);
            }

            @Override
            public AuthLoginResponseData[] newArray(int size) {
                return new AuthLoginResponseData[size];
            }
        };
        private String access_token;
        private String id;
        private String username;

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public AuthLoginResponseData() {
        }

        protected AuthLoginResponseData(Parcel in) {
            this.access_token = in.readString();
            this.id = in.readString();
            this.username = in.readString();

        }




        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.access_token);
            dest.writeString(this.id);
            dest.writeString(this.username);

        }
    }
}
